src += main.c
src += player_process.c
src += player_interface.c
src += player_ipmsg.c
src += ipmsg_udp.c
src += ipmsg_tcp.c
src += ipmsg_data.c
src += sqlite3.c
src += player_timer.c

obj = $(src:%.c=%.o)

CC = arm-linux-gcc
#CC = gcc
FLAG = -Wall
OPTION = -lpthread -ldl 
EXEC_NAME = web_player
EXEC_PATH = ../$(EXEC_NAME)

play:$(obj)
	@echo make ...
	$(CC) $^ -o $(EXEC_PATH) $(FLAG) $(OPTION)
	@echo make over
	@echo Execute target is $(EXEC_PATH)
%.o:%.c
	$(CC) -c -o $@ $< $(FLAG)

.PHONY:clean
clean:
	@echo clean ...
	rm $(EXEC_PATH) *.o -rf
	@echo clean over
